package com.css.dao;

import java.util.List;

import com.css.vo.Sale;
import com.css.vo.SaleTop;

public interface ISaleDAO {

	public void save(Sale sale);

	public void delete(Sale sale);

	public void update(Sale sale);

	public Sale find(String saleModel);

	public List<Sale> findAllSale();

	public List<Sale> findById(Integer id);

	public List<Sale> findSalePage(int pageNow, int pageSize, Sale sale);

	public int getTotalSaleCount(Sale sale);

	public List<Sale> searchSale(String search);

	int getTotalCount(String search);

	public List<Sale> getSales(int page, int pageSize, String search);

	public List<SaleTop> getSaleTopList();

}
